<template>
  <div class="panel">
    <router-link :to="{name:'index'}">首页</router-link>
    <router-link :to="{name:'cart'}">购物车</router-link>
    <router-link :to="{name:'login'}">登录</router-link>
    <div class="box">
       首页
        <van-button type="primary">默认按钮</van-button>
    </div>
    
  </div>
</template>

<script>
// import {jsonp} from '@/utils/jsonp'
// console.log(jsonp);
import news from '@/api/news'
import axios from 'axios';

 const app = tcb.init({
      env: "hello-cloudbase-9g0d2at51ecb99c8"
    })
    console.log(app);
export default {
  data () {
    return {

    }
  },
  mounted () {
    axios({
      url:'/playlist?channel=-10&kbps=128&client=s%3Amainsite%7Cy%3A3.0&app_name=radio_website&version=100&type=s&sid=216888&pt=&pb=128&apikey=',
      // method:'get',
      // headers: {
      //       'Content-Type': 'application/x-www-form-urlencoded'
      //   }
    }).then(res=>{
      console.log(res);
    })
    news.getSearch().then(res=>{
      console.log(res);
    })
  },
  methods: {

  }

}
</script>

